var Process_Now = 1; 

function playMusic(){
    document.getElementById("singerImg").setAttribute('class','singer');
    document.getElementById("play").setAttribute('class','playToPause');
    document.getElementById("pause").setAttribute('class','pauseBack');
    var soulMusic = document.getElementById("soulMusic");
    soulMusic.play();
    //音乐播放时调用process函数
    setInterval("process()",1000);

}

function pauseMusic(){
    document.getElementById("singerImg").setAttribute('class','freezingSinger');
    document.getElementById("pause").setAttribute('class','pauseToPlay');
    document.getElementById("play").setAttribute('class','playBack');
    var soulMusic = document.getElementById("soulMusic");
    soulMusic.pause();
}

//进度条函数
function process(){
    Process_Now+=1;
    document.getElementById("loadingRed").style.width = Process_Now+ "%";
    if(Process_Now>=100){
        Process_Now = 0
    }
}